
public class BankAccount {

    private int accountNr;
    private String name;
    private int amount;

    public BankAccount(int amount, int accountNr, String name) {
        this.name = name;
        this.accountNr = accountNr;
        this.amount = amount;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAccountNr(int accountNr) {
        this.accountNr = accountNr;
    }

    public void setAmount(int amount) {

        this.amount = amount;
    }

    int getAccountNr() {
        return accountNr;
    }

    String getName() {
        return name;
    }

    int getAmount() {
        return amount;
    }
}
